package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.YufukBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface YufukService extends BaseService<YufukBean> {

	YufukBean getYufukBeanById(String id) throws Exception;
	
	void removeYufukBeanById(String id) throws Exception;
	
	void removeYufukBeanByIds(String ids) throws Exception;
	
	YufukBean saveYufukBean(YufukBean crm) throws Exception;
	
	YufukBean updateYufukBean(YufukBean crm) throws Exception;
	
	Page<YufukBean>  findYufukBeanByCond(YufukBean bean,
			Page<YufukBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveYufukBeanExt(String sql) throws Exception;

	String findYufukBeanExtCreate(String tableName) throws Exception;

	String findYufukBeanExtEdit(String tableName, String id)
			throws Exception;

	String findYufukBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasYufukBeanExtData(String tableName, String id)
			throws Exception;
}